package com.sai.jsai.module.auth.handler;

import com.sai.jsai.common.base.exception.ErrorCode;

/**
 * @author jisai
 * @version 0.0.1
 * @Description TODO
 * @createTime 2024/09/23
 */
public enum AuthErrorCode implements ErrorCode {
    NOT_LOGIN(10000, "请先登录"),
    AUTH_LOGIN_USERNAME_NOT_EXIST(10001, "登录失败, 用户名不存在"),
    AUTH_LOGIN_PASSWORD_ERROR(10002, "登录失败, 密码错误");


    private Integer code;


    private String message;

    AuthErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }


}
